home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / SOUND / TUTOR2.ZIP / TUTOR2.TXT < prev   
Encoding:
Text File  |  1993-09-03  |  6.5 KB  |  127 lines

  1. Patch Tutorial #2 - percussive patches
  2. ======================================
  3.  
  4. Before you start, you need to get some tools that will help you create
  5. patches. All of them can be found on archive.epas.utoronto.ca.
  6.  
  7. sox7dos.zip  - a must for any serious format manipulations
  8. goldwave.zip - or any other 16 bit wave editor like cooled (optional)
  9. patch.exe    - Gravis patch editor (also found in the sdk)
  10. playfile.exe - included with the Gravis
  11. convert.exe  - needed only if you use goldwave (because of a bug)
  12.  
  13. I would also suggest programs like Csound and samplevision if you plan on
  14. doing a lot of patches. A ASCII/HEX byte editor like Zap is also very
  15. usefull.
  16.  
  17. 1 - You need a sound. In our example, we will use the included SCRATCH.SND.
  18. It is already a raw soundfile, so all the steps that were described in
  19. TUTOR1.TXT (in PATCHKIT.ARJ) are not nescessary. However when you'll do
  20. a patch on your own, you'll need to follow the steps in TUTOR1.TXT and master
  21. applications like SOX and clearly understand the difference between signed/
  22. unsigned, byte/word/float, uLaw samples etc...
  23.  
  24. 2 - Now, you need to determine what frequency the .SND is. By using playfile,
  25. it should be clear that SCRATCH.SND is a 16 bit, signed, 22050 Hz file. You
  26. then note the length of the file (in bytes) and start PATCH.EXE. I use my own
  27. program (PATCHGOD) that ask me for all these parameters and others and
  28. creates automagically a patch (SWIRL.PAT was created like that). But in your
  29. case, you will need to use PATCH. NOTE: code is beeing added to SOX so
  30. that it will convert any sound to a Gravis Ultrasound patch. This, along
  31. with a DOS synth module application will be released in 4th quarter of 1993.
  32.  
  33. C:>PATCH
  34.  
  35. Once started, click on the 8 box. You will then see 16. LOOP should be in
  36. red (indicating it is disabled) and SUST green. If not, click on them. You
  37. may have to click on SUST up to 3 times to get the correct mode (SUST green,
  38. no blue dot). Go to the left with the mouse (position 0), then press a on
  39. your pc keyboard. This will load a wavesample. type SCRATCH.SND, 15296 (the 
  40. length in bytes of the raw file) and 0 for filename, bytes to load and bytes
  41. to skip. Click on RANGE, then click on the leftmost note, then click on LOW.
  42. Then click on C3 (click the notes till you get it) or whatever note you want
  43. to put as root note (usually the root note is the note where the percussive
  44. patch will be assigned; for example, percussion 36 in ULTRASND.INI and
  45. DEFAULT.CFG or 163 in ULTRAMID.INI, would be C3 as you can verify yourself
  46. in the TABLE1.TXT file), then click on ROOT and finally click on OCTAVE
  47. SHIFT, click on the rightmost note, then click on HIGH. Type f, then type
  48. 22050 for frequency, and then type enter (in TUTOR1.TXT i made you type in
  49. again the low, root and high frequency again). Last, click on range, go at
  50. position 0 and press [, then at the end and press E, then back up to the left 
  51. by 1 sample position and press ] (these are the start loop point, end point
  52. and end loop point expressed in sample offset instead of byte offset because
  53. we are in 16 bit mode).
  54.  
  55. Now, here is where we change a lot from TUTOR1.TXT. We will modify the
  56. enveloppe by pressing the ENVEL button. Dont panic, it's not as hard as it
  57. looks. I will not yet enter in the wonderfull world of enveloppes yet. I
  58. will save this for TUTOR3.TXT. But you can experiment. Once you modify the
  59. enveloppe, you can either play on your MIDI keyboard if it is connected to
  60. the Gravis MIDI port (will not work off an MPU401), or click on RANGE and
  61. play with the mouse. To get back to enveloppes, press ENVEL. Now if you
  62. dont have an idea on how to do it, i have included an enveloppe already,
  63. so all you have to do is to press F5. It will ask for the name of the
  64. enveloppe file. Type SCRATCH.ENV. On the other hand if you want to make your
  65. own and at some point you are not sure if you have finished or not, and want
  66. to save the enveloppe, press F6 to save it. I would suggest making a few
  67. basic enveloppes that will serve as general purpose later when you do other
  68. patches.
  69.  
  70. And it's not finished yet! Now we will have to choose between flexibility
  71. and ease of use. If you know the patch may be needed as a melodic or
  72. percussive patch, you keep the current frequency scaling (1.0). But if you
  73. want to use it only as melodic and be able to change the position of the
  74. patch in the .ini or .cfg files, you have to scale it to 0.0. To do this
  75. click the root note (or whatever note you'd like to use equally on the whole
  76. keyboard), then press F7 and type 0.0. To undo this you'd press F7 and type
  77. 1.0. If you still want a little frequency change over the keyboard (to use
  78. the same patch on several notes to simulate low, mid and high toms for
  79. example), you could use a factor between 0.0 and 1.0 and it would give more
  80. flexibility. The factor can be up to 2.0. Experiment with it to see it's
  81. effect. Last, we will introduce another command before saving: H. Go ahead,
  82. press H. You can now enter a description or copyright notice, up to 60 bytes
  83. long. Then you are asked for the number of active voices. Type 14. We will
  84. get into details in another tutorial.
  85.  
  86. Well, that's it. Type s, then type the name of the patch file and it will be
  87. saved. It should be very similar to SCRATCH.PAT (should at least sound the
  88. same). Due to a few errors in PATCH.EXE, the length of the pat as seen by
  89. PATCHMAN in windows will be 0Kb. Also, it wont have a name. To add a name,
  90. you can use a byte editor like ZAP (the converter in SOX will permit a patch
  91. name) and type the name at offset 131 in decimal. Check out patch.h for more
  92. details, in PATCHKIT.ARJ.
  93.  
  94. If you get lost, try F1 for help. If that's not enough, you can email me, or
  95. better ask on the digest.
  96.  
  97. Well that's it for today... more tutorials comming, and maybe more
  98. explanations if it's not clear enough.
  99.  
  100. As for PAD_C7.AIF from the first tutorial, i said i may give the loop points
  101. found in the AIFF file. Well if you havent found them yet, guess you didn't
  102. really look into it. But i will give them anyway: 5823 and 14330 in byte
  103. offsets, or 2911.5 and 7165 in word (16 bit samples) offset. The fractional
  104. loop points will be needed for the 2911.5. Add to the start loop point
  105. fraction until the loop sounds ok (no buzz).
  106.  
  107. Francois Dion
  108.     '
  109.  
  110.       Snail mail:
  111.       IdMEDIA
  112.       c/o Francois Dion
  113.       P.O. Box 312
  114.       St-Lambert, QC
  115.       Canada
  116.       J4P 3P8
  117.  
  118.       Phone:
  119.       514-671-4933 or 514-343-7511
  120.  
  121.       Internet:
  122.       dionf@ere.umontreal.ca or cism@ere.umontreal.ca
  123.  
  124.       Fidonet:
  125.       Francois Dion
  126.       1:167/228
  127.